package com.sbm.merge.设计模式.factory.abstractfactory;

import com.sbm.merge.设计模式.factory.abstractfactory.components.Button;
import com.sbm.merge.设计模式.factory.abstractfactory.components.TextField;

public class Test {

    public static void main(String[] args) {

        // 使用安卓工厂创建一些列产品
//        GUIFactory guiFactory = new AndriodGUIFactory();

        // 使用IOS工厂创建一些列产品
        GUIFactory guiFactory = new IOSGUIFactory();

        Application application = new Application(guiFactory);

        Button button = application.getButton();
        TextField textField = application.getTextField();

        button.draw();
        textField.textField("hello world");


    }

}
